<?php

class Mantenimiento extends MY_Model {

 
    function Mantenimiento()
    {
        // Call the Model constructor
        parent::MY_Model();
	
        $this->setTituloModificar("Modificar Mantenimiento");
		$this->setTituloListado("Listado de Mantenimientos");
		$this->setTituloCrear("Crear Mantenimiento");
        
		$this->nombreTabla = "mantenimiento";
		$this->idT1= "idmantenimiento";
		$this->nombreCampo="fecha";

		$this->campos[] = array("realname" => "iddepartamento",
					"clase" => "partof",
					"label" => "Departamento",
					"modelo" => "departamento",
					"rules" => "required|integer");
		
		$this->campos[] = array("realname" => "fecha",
					"clase" => "date",
					"label" => "Fecha",
					"rules" => "fecha");

		$this->campos[] = array("realname" => "turno",
					"clase" => "text",
					"label" => "Turno",
					"rules" => "required|max_length[45]|texto");

		$this->campos[] = array("realname" => "detalle",
					"clase" => "textarea",
					"label" => "Detalle",
					"rules" => "texto");
		

	
    }
     
    
 
}


?>
